package com.dyava.dycache.redis;

import com.dyava.dycache.core.CacheWrap;

/**
 * Created by jjliu on 2020/4/9.
 */
public interface RedisClient {

    public String redisClientName();

    public RedisCacheWrap read(String key);

    public String readVersion(String key);

    public void write(String key,RedisCacheWrap cacheWrap);

    public void delete(String key);

    public boolean tryLock(String lock);

    public boolean lock(String lock);

    public void unLock(String lock);

}
